﻿//-----------------------------------------------------------------------------------
// <copyright file="UnitTestClassAttributeTest.cs" company="P.O.S Informatique">
//     Copyright (c) P.O.S Informatique. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------------------
namespace PosInformatique.DevelopmentTools.VisualStudio.TestExtensions.Tests
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using PosInformatique.Framework;

    [TestClass]
    public class UnitTestClassAttributeTest
    {
        [TestMethod]
        public void ExtensionIdTest()
        {
            UnitTestClassAttribute attribute;
            attribute = new UnitTestClassAttribute();

            Assert.AreEqual(new Uri("urn:PosInformatique.DevelopmentTools.VisualStudio.TestExtensions"), attribute.ExtensionId);
        }

        [TestMethod]
        public void GetExecutionTest()
        {
            UnitTestClassAttribute attribute;
            attribute = new UnitTestClassAttribute();

            TestExtensionExecution execution;
            execution = attribute.GetExecution();

            Assert.IsInstanceOfType(execution, typeof(TestExtensionExecution));
        }
    }
}
